<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


<h:head>
	<title>Central de Estagio Administração</title>
	        <link rel="StyleSheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilo.css" media="screen" />
            <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/css/tema/theme.css"/>
</h:head>
<body>
	<h:form id="formCurso">
		<div align="center">

			<p:panelGrid id="gridCurso" styleClass="semBorda">
				<f:facet name="header">
					<p:row>
						<p:column colspan="2" style="width:100% font-size:18px"> CADASTRAR CURSO </p:column>
					</p:row>
				</f:facet>
				<p:row>
					<p:column colspan="2" style="width:100% font-size:10px">
						<div align="right">Codigo: #</div>
					</p:column>
				</p:row>
				<p:row>
					<p:column colspan="2" style="width:50% font-size:8px">Nome do Curso</p:column>
				</p:row>
				<p:row>
					<p:column colspan="2">
						<p:inputText id="nome" value="#{MBCurso.beanCurso.nomeCurso}"
							size="60" required="true"
							requiredMessage="Validação: Nome do curso é obrigatório!" />
						<p:message for="nome" display="text"/>
					</p:column>

				</p:row>

				<p:row>
					<p:column style="width:50% font-size:8px">Duração</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:inputText id="duracao"
							value="#{MBCurso.beanCurso.duracaoCurso}" size="30"
							required="true"
							requiredMessage="Validação: Duracão é obrigatório!" />
						<p:message for="duracao" display="text"/>
					</p:column>
				</p:row>
				<p:row>
					<p:column colspan="2" style=" width:100% font-size:10px">
						<div align="center"></div>
					</p:column>
				</p:row>
			</p:panelGrid>
			<p:commandButton id="infoButton" value="Salvar" icon="ui-icon-disk"
				actionListener="#{MBCurso.save}" update="gridCurso" />
			<p:button value="Cancelar" icon="ui-icon-cancel" type="reset" />
		</div>
	</h:form>
</body>
</html>